import axios from "../utils/http"
export default {
    //列表
    shoppList(data={}){
        return axios({
            url: "api/product/getCategory",
            method: "POST",
            data: data
        })
    },
   //全部
    AllShoppList(data={}){
        return axios({
            url: "api/product/getAllProduct",
            method: "POST",
            data: data
        })
    },
    //分类
    ListShopp(data={}){
        return axios({
            url: "api/product/getProductByCategory",
            method: "POST",
            data: data
        })
    },
      //搜索商品信息
      getProductBySearch(data={}){
        // currentPage: 1
        // pageSize: 15
        // search: "洗衣机"
        return axios({
            url: "api/product/getProductBySearch",
            method: "POST",
            data: data
        })
    },
}